<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>导航栏</title>
    <link rel="stylesheet" href="../pkj/bootstrap-4.6.2-dist/css/bootstrap.min.css">
    
    <!-- css 文件的添加 -->
    <script src="../pkj/bootstrap-4.6.2-dist/css/bootstrap.min.css"></script>
    <script src="./static/pkg/jQuery-3.7.1/jquery-3.7.1.min.js"></script>
    <script src="./community.css"></script>


</head>
<body>
    <!-- 导航栏 -->
    <nav id="nav" class="navbar navbar-expand-lg navbar-light bg-light">
        <a id="navBar" class="navbar-brand" href="#">Navbar</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
      
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
            <!-- 给下面的 Home 标签添加一个 id = "btnHome", 方便添加事件 -->
            <!-- onclick="Index.func.clickHome()" 用来设置调用点击后调用对应的函数 -->
            <li id="btnHome" class="nav-item active" onclick="Index.func.clickHome()">
                <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">Link</a>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="false">
                    Dropdown
                </a>
                <div class="dropdown-menu">
                    <a class="dropdown-item" href="#">Action</a>
                    <a class="dropdown-item" href="#">Another action</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">Something else here</a>
                </div>
            </li>
            <li class="nav-item">
                <a class="nav-link disabled">Disabled</a>
            </li>
            </ul>

            <form class="form-inline my-2 my-lg-0">
                <input id="searchWord" class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" onclick="Index.func.changeSearchWord()">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </div>
    </nav>

    <!-- 环状旋转器：加载的时候可以使用的 -->
    <div class="Mask" id="mask">
        <div id="loading" class="spinner-border text-primary" role="status">
            <span class="sr-only">Loading...</span>
        </div>
        <p class="tip">加载中...</p>
    </div>

    <div id="community">
        <div class="col">
            <img src="./login.png" alt="">
            <div>
                <p class="card-text">username</p>
                <p class="card-text">prief</p>
            </div>
        </div>
    </div>


    <!-- js 文件的添加: 注意先添加 jquery-3.7.1.min.js, 再添加 bootstrap.min.js -->
    <script src="../pkj/jQuery-3.7.1/jquery-3.7.1.min.js"></script>
    <script src="../pkj/bootstrap-4.6.2-dist/js/bootstrap.min.js"></script>
    <script src="../pkj/popper/popper.min.js"></script>
    
    <script src="./community.js"></script>
    <!-- 上面的 ./community.js 文件包含进来了，下面就可以调用了 -->
    <script>
        Index.func.init();
    </script>



</body>
</html>